package com.powersystem.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrongji
 * @since 2019-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Flawlog extends Model<Flawlog> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("POLECODE")
    private String polecode;

    private Long taskid;

    @TableField("lineCode")
    private String lineCode;

    @TableField("lineName")
    private String lineName;

    @TableField("flawLevel")
    private Integer flawLevel;

    @TableField("flawLevelName")
    private String flawLevelName;

    @TableField("flawType")
    private Integer flawType;

    @TableField("flawTypeName")
    private String flawTypeName;

    @TableField("flawCommit")
    private String flawCommit;

    @TableField("ISSUEDBYCODE")
    private String issuedbycode;

    @TableField("ISSUEDBYNAME")
    private String issuedbyname;

    @TableField("discoverCode")
    private String discoverCode;

    @TableField("discoverName")
    private String discoverName;

    @TableField("discoverTime")
    private LocalDateTime discoverTime;

    @TableField("CREATEDBY")
    private String createdby;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
